package com.rongcheng.fortestlist;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

/**
 * @author frc
 *         created at 16-12-29.
 */

public class TestView extends View {
    static String TAG = "";

    public TestView(Context context) {
        this(context, null);
    }

    public TestView(Context context, AttributeSet attrs) {
        this(context, null, 0);
    }

    public TestView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        TAG = this.getClass().getSimpleName();
        testScroll();

    }

    private void testScroll() {
        int[] locationXY = new int[2];
        getLocationOnScreen(locationXY);

        Log.e(TAG, locationXY.toString());

    }
}
